<?php

namespace cf\api\message;

require_once dirname(__FILE__).'/admin.php';

function send($to, $subject, $text='')
{
	$msgId = \cf\api\admin\doAction(
		'message_send',
		array('to'=>$to, 'subject'=>$subject, 'text'=>$text)
	);
	
	//notify by email ?
	
	return $msgId;
}

?>